﻿namespace Sidvall.Data
{
    public class SqlQueryCollection : System.Collections.ObjectModel.Collection<SqlQuery>
    {
        #region Business Members

        public bool UseTransaction { get; set; }

        #region Add

        public void Add(string sql, params object[] parameterValues)
        {
            var item = new SqlQuery();
            item.Sql.Append(sql);
            item.AddParameterValues(parameterValues);
            Add(item);
        }

        #endregion

        #endregion
        #region Constructors

        public SqlQueryCollection()
        {
        }

        #endregion
    }
}
